package cn.wh.org.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.wh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author yaosang
 * @since 2022-06-12
 */
@Data
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "座机电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name = "入驻时间" ,orderNum = "3", width = 30, isImportField = "true_st",databaseFormat = "yyyyMMddHHmmss ",format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registerTime = new Date();
    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "状态" ,orderNum = "4", width = 30, isImportField = "true_st", replace = {"待审核_0","待激活_1","拒绝_-1","驳回_2","激活成功_3"})
    private Integer state = 0;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "logo" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    @Excel(name = "管理员" ,orderNum = "7", width = 30, isImportField = "true_st")
    private Long adminId;

    public Employee Admin;

    private List<ShopAuditLog> auditLogs;
}
